package org.drake.refactor.skill.reorganize;

public class SuperMarket {
    private final WorkTime workTime = new WorkTime();
    private final BaseMessage baseMessage = new BaseMessage();
    private final MarketMessage marketMessage = new MarketMessage();

    public SuperMarket(String startTime, String endTime, int shopCount, String name, String location, int size, int floorSize, int capacity) {
        this.workTime.setStartTime(startTime);
        this.workTime.setEndTime(endTime);
        this.marketMessage.setShopCount(shopCount);
        this.baseMessage.setName(name);
        this.baseMessage.setLocation(location);
        this.baseMessage.setSize(size);
        this.baseMessage.setFloorSize(floorSize);
        this.marketMessage.setCapacity(capacity);
    }

    @Override
    public String toString() {
        return "SuperMarket{" +
                "startTime='" + workTime.getStartTime() + '\'' +
                ", endTime='" + workTime.getEndTime() + '\'' +
                ", shopCount=" + marketMessage.getShopCount() +
                ", name='" + baseMessage.getName() + '\'' +
                ", location='" + baseMessage.getLocation() + '\'' +
                ", size=" + baseMessage.getSize() +
                ", floorSize=" + baseMessage.getFloorSize() +
                ", capacity=" + marketMessage.getCapacity() +
                '}';
    }
}
